package cn.edu.lzu.dao;

import cn.edu.lzu.entity.Nation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @PackageName: cn.edu.lzu.dao
 * @InterfaceName: NationMapper
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/4/18 16:21
 * @Version: 1.0
 */
@Mapper
public interface NationMapper {
    @Select("select * from nation")
    List<Nation> selAllNations();

    @Select("select * from nation where nation_id=#{nationId}")
    Nation selByNationId(int nationId);
}
